package com.regal.packet;

import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.provider.IQProvider;
import org.xmlpull.v1.XmlPullParser;

public class GroupQuery extends IQ{

	private String userType;
	private String stockid;
	private String companyname;
	private String tradename;
	private String city;
	

	
	/**
	 * Element name of the packet extension.
	 */
	public static final String ELEMENT_NAME = "query";

	/**
	 * Namespace of the packet extension.
	 */
	public static final String NAMESPACE = "jabber:iq:group_query";

	
	public String getChildElementXML() {
		StringBuffer buf = new StringBuffer();
		buf.append("<query xmlns=\"" + NAMESPACE + "\">");
		buf.append("</query>");
		return buf.toString();

	}
	
	public String getUserType() {
		return userType;
	}


	public void setUserType(String userType) {
		this.userType = userType;
	}


	public String getCity() {
		return city;
	}


	public void setCity(String city) {
		this.city = city;
	}


	public String getCompanyname() {
		return companyname;
	}


	public void setCompanyname(String companyname) {
		this.companyname = companyname;
	}


	public String getStockid() {
		return stockid;
	}


	public void setStockid(String stockid) {
		this.stockid = stockid;
	}


	public String getTradename() {
		return tradename;
	}


	public void setTradename(String tradename) {
		this.tradename = tradename;
	}	
	
	public static class Provider implements IQProvider {

		public Provider() {
			super();
		}

		
		public IQ parseIQ(XmlPullParser parser) throws Exception {
		
			GroupQuery groupQuery = new GroupQuery();
			
			
			
			return groupQuery;
		
		}
	}
}